package io;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * @version 1.8
 * @Author Djx_hmbb
 * @Date 2023/8/30 15:57
 * @注释:输出流
 */
public class IODemo7 {
    public static void main(String[] args) throws IOException {
        OutputStream outputStream = new FileOutputStream("./ddd.txt");
        outputStream.write(97);
        outputStream.write(98);
        outputStream.write(99);
        outputStream.write(100);
        byte[] b = new byte[3];
        b[1] = 97;
        b[2] = 98;
        outputStream.write(b);
        outputStream.close();
    }
}
